package com.bestv.search.engine.compass.extend;

import org.apache.lucene.store.RAMDirectory;

/**
 * @author Michael Wang
 */
public class RAMDirectoryManager {

    private static RAMDirectory dir;

    public static RAMDirectory getInstance() {
        if (dir == null) {
            dir = new RAMDirectory();
        }
        return dir;
    }

}
